package fr.chatellier.onlinemanager.server.data;

import fr.chatellier.onlinemanager.client.data.EventClient;

public class DataConverter {

	public Event getEventFromEventClient(EventClient eventClient){
		Event result = new Event();
		result.setDay(eventClient.getDay());
		result.setEventType(eventClient.getEventType());
		result.setHour(eventClient.getHour());
		return result;
	}
	
	public EventClient getEventClientFromClient(Event event){
		EventClient result = new EventClient();
		result.setDay(event.getDay());
		result.setEventType(event.getEventType());
		result.setHour(event.getHour());
		return result;
	}
	
}
